package toubiao.utils;

import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;

public class ProUtilConfig {
	private static final ResourceBundle bundle = ResourceBundle.getBundle("config/config");
	private static Map<String, String> configMap=new HashMap<String, String>();
	
	static{
		Set<String> keySet=bundle.keySet();
		for(String key:keySet){
			configMap.put(key, bundle.getString(key));
		}
	}
	
	public static String getSessionInfoName(){
		return configMap.get("session.info");
	}
	
	public static String getDownloadPublicPath(){
		return configMap.get("path.download.public");
	}
	
	public static String getDownloadTempPath(){
		return configMap.get("path.download.temp");
	}
	
	public static String getUploadTempPath(){
		return configMap.get("path.upload.temp");
	}
	
	public static String getCollectionDividor(){
		return configMap.get("collection.divider");
	}
	
	public static String getResourceBasePath(){
		return configMap.get("path.resource.base");
	}
}
